home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Software Contest 3
/
FM Towns Software Contest 3.iso
/
exp
/
video_t
/
no1
/
c_sorse
/
cdplay.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-01-07
|
11KB
|
464 lines
#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
extern int Dialog_cdplay ;
extern int Message_cd3 ;
extern int Message_cd2 ;
extern int Message_cd1 ;
extern int TIcon_cd1 ;
extern int cd_bottan() ;
extern int TIcon_cd2 ;
extern int _001Message_cd2 ;
extern int _002Message_cd2 ;
extern int _003Message_cd2 ;
extern int _004Message_cd2 ;
extern int _005Message_cd2 ;
extern int _006Message_cd2 ;
extern int NumBox_cd1 ;
extern int _001NumBox_00a7 ;
extern int _002NumBox_00a7 ;
extern int DButton_cd0 ;
extern int cd_stop() ;
extern int Button_cd1 ;
extern int cd_on() ;
extern int DButton_cd2 ;
extern int cd_kaku() ;
extern int DButton_cd3 ;
extern int cd_off() ;
extern int _007Message_cd2 ;
extern int _008Message_cd2 ;
extern int _009Message_cd2 ;
extern int _010Message_cd2 ;
extern int Message_cd10 ;
extern int _001Message_cd10 ;
#define ALIGN 4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
/* MMI_init 用データ */
/* ヘッダ */
MMIINIT initDataCDPLAY = { "MmiInit", 25, 0 } ;
/* Dialog_cdplay */
static MMIPACKET d001 = { &Dialog_cdplay,
NULL,
&MJ_DIALOGL40,
OFFSET(DIALOGL40),
0
} ;
static DIALOGL40 d001d = { MS_BTLEFTL40 | MS_EVMOSONL40,
21, 24, 348, 313, 0, 7, 0,
MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
NULL, 0, 0
} ;
/* Message_cd3 */
static MMIPACKET d002 = { &Message_cd3,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d002d = { MS_CENTERL40 | MS_DSPONLYL40,
26, 33, 319, 56, 0,15,12,
MS_NONEL40,
"CD演奏",
2, 16, 16,
MS_NONEL40,
20, 0
} ;
/* Message_cd2 */
static MMIPACKET d003 = { &Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d003d = { MS_CENTERL40 | MS_DSPONLYL40,
70, 63, 148, 86, 0,15, 0,
MS_NONEL40,
"全曲演奏",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* Message_cd1 */
static MMIPACKET d004 = { &Message_cd1,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d004d = { MS_CENTERL40 | MS_DSPONLYL40,
202, 63, 319, 86, 0,15, 0,
MS_NONEL40,
"一曲のみ演奏",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* TIcon_cd1 */
static MMIPACKET d005 = { &TIcon_cd1,
&Dialog_cdplay,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d005d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
42, 64, 59, 83, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
cd_bottan,
0x0000, 259, 260
} ;
/* TIcon_cd2 */
static MMIPACKET d006 = { &TIcon_cd2,
&Dialog_cdplay,
&MJ_TICONL40,
OFFSET(TICONL40),
0
} ;
static TICONL40 d006d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40 | MS_LEFTL40,
186, 64, 203, 83, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
cd_bottan,
0x0000, 259, 260
} ;
/* _001Message_cd2 */
static MMIPACKET d007 = { &_001Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d007d = { MS_CENTERL40 | MS_DSPONLYL40,
67, 128, 211, 151, 0,15, 0,
MS_NONEL40,
"演奏トラック",
2, 16, 16,
MS_NONEL40,
8, 0
} ;
/* _002Message_cd2 */
static MMIPACKET d008 = { &_002Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d008d = { MS_CENTERL40 | MS_DSPONLYL40,
67, 164, 209, 187, 0,15, 0,
MS_NONEL40,
"演奏開始オフセット",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* _003Message_cd2 */
static MMIPACKET d009 = { &_003Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d009d = { MS_CENTERL40 | MS_DSPONLYL40,
268, 128, 308, 151, 0,15, 0,
MS_NONEL40,
"曲目",
2, 16, 16,
MS_NONEL40,
1, 0
} ;
/* _004Message_cd2 */
static MMIPACKET d010 = { &_004Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d010d = { MS_LEFTL40 | MS_DSPONLYL40,
273, 165, 313, 188, 0,15, 0,
MS_NONEL40,
"分",
2, 16, 16,
MS_NONEL40,
1, 0
} ;
/* _005Message_cd2 */
static MMIPACKET d011 = { &_005Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d011d = { MS_CENTERL40 | MS_DSPONLYL40,
68, 202, 210, 225, 0,15, 0,
MS_NONEL40,
"演奏開始オフセット",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* _006Message_cd2 */
static MMIPACKET d012 = { &_006Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d012d = { MS_LEFTL40 | MS_DSPONLYL40,
271, 202, 311, 225, 0,15, 0,
MS_NONEL40,
"秒",
2, 16, 16,
MS_NONEL40,
1, 0
} ;
/* NumBox_cd1 */
static MMIPACKET d013 = { &NumBox_cd1,
&Dialog_cdplay,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
0
} ;
static NUMBOXL40 d013d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
214, 127, 267, 150, 0, 7, 0,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 99, 1, 0,
263, 264
} ;
/* _001NumBox_00a7 */
static MMIPACKET d014 = { &_001NumBox_00a7,
&Dialog_cdplay,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
0
} ;
static NUMBOXL40 d014d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
214, 164, 267, 187, 0, 7, 0,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 120, 1, 0,
263, 264
} ;
/* _002NumBox_00a7 */
static MMIPACKET d015 = { &_002NumBox_00a7,
&Dialog_cdplay,
&MJ_NUMBOXL40,
OFFSET(NUMBOXL40),
0
} ;
static NUMBOXL40 d015d = { MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
214, 201, 267, 224, 0, 7, 0,
MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
0,
1, 12, 12,
MS_NONEL40,
0, 0,
0, 0, 59, 1, 0,
263, 264
} ;
/* DButton_cd0 */
static MMIPACKET d016 = { &DButton_cd0,
&Dialog_cdplay,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d016d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
130, 237, 238, 262, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
cd_stop,
0x0000
} ;
/* Button_cd1 */
static MMIPACKET d017 = { &Button_cd1,
&Dialog_cdplay,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d017d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
43, 272, 119, 297, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40 | MS_DEFAULTL40,
cd_on,
0x0000
} ;
/* DButton_cd2 */
static MMIPACKET d018 = { &DButton_cd2,
&Dialog_cdplay,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d018d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
147, 271, 223, 296, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
cd_kaku,
0x0000
} ;
/* DButton_cd3 */
static MMIPACKET d019 = { &DButton_cd3,
&Dialog_cdplay,
&MJ_DBUTTONL40,
OFFSET(DBUTTONL40),
0
} ;
static DBUTTONL40 d019d = { MS_BTLEFTL40 | MS_EVKEYONL40 | MS_EVMOSOFFL40,
248, 271, 324, 296, 0, 7, 0,
MS_UFRAMEL40 | MS_FRAMEL40,
cd_off,
0x0000
} ;
/* _007Message_cd2 */
static MMIPACKET d020 = { &_007Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d020d = { MS_CENTERL40 | MS_DSPONLYL40,
43, 273, 118, 296, 0,15,15,
MS_NONEL40,
"確定",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* _008Message_cd2 */
static MMIPACKET d021 = { &_008Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d021d = { MS_CENTERL40 | MS_DSPONLYL40,
149, 272, 224, 295, 0,15,15,
MS_NONEL40,
"演奏確認",
2, 16, 16,
MS_NONEL40,
0, 0
} ;
/* _009Message_cd2 */
static MMIPACKET d022 = { &_009Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d022d = { MS_CENTERL40 | MS_DSPONLYL40,
250, 272, 325, 295, 0,15,15,
MS_NONEL40,
"取消",
2, 16, 16,
MS_NONEL40,
16, 0
} ;
/* _010Message_cd2 */
static MMIPACKET d023 = { &_010Message_cd2,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d023d = { MS_CENTERL40 | MS_DSPONLYL40,
131, 238, 237, 261, 0,15,15,
MS_NONEL40,
"演奏停止",
2, 16, 16,
MS_NONEL40,
8, 0
} ;
/* Message_cd10 */
static MMIPACKET d024 = { &Message_cd10,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d024d = { MS_CENTERL40 | MS_DSPONLYL40,
26, 93, 239, 116, 0,15,14,
MS_NONEL40,
"演奏トラックを 0 にすると演奏停止",
1, 12, 12,
MS_NONEL40,
0, 0
} ;
/* _001Message_cd10 */
static MMIPACKET d025 = { &_001Message_cd10,
&Dialog_cdplay,
&MJ_MSGL40,
OFFSET(MSGL40),
0
} ;
static MSGL40 d025d = { MS_CENTERL40 | MS_DSPONLYL40,
231, 93, 342, 116, 0,15,14,
MS_NONEL40,
"コマンドになります",
1, 12, 12,
MS_NONEL40,
0, 0
} ;